package com.lehecai.core.task.sender;

import com.lehecai.core.task.IAsyncTask;
import com.lehecai.core.task.entity.AsyncTaskItem;

/**
 * 异步任务发送器
 * Created by qatang on 14-2-26.
 */
public interface IAsyncTaskSender {

    /**
     * 发送单个异步任务
     * @param asyncTask
     * @return AsyncTaskItem
     * @throws Exception
     */
    public AsyncTaskItem send(IAsyncTask asyncTask) throws Exception;
}
